package com.nk.service.impl;

import com.nk.domain.Permission;
import com.nk.mapper.PermissionMapper;
import com.nk.service.PermissonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class PermissionServiceImpl implements PermissonService {

    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<Permission> getPermissionList() {

        List<Permission> permissionList = permissionMapper.selectAll();
        return permissionList;
    }
}
